package com.byteshake.ddoffice.ui.home

import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.annotation.Route

@Route(path = "/test/ui/navfragment")
class TestUIFragment : Fragment() {
    private val TAG = "TestUIFragment"

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        val textView = TextView(inflater.context).apply {
            text = title
            setTextColor(Color.BLACK)
        }
        Log.d(TAG, "onCreateView: ")

        return textView
    }
    private var title: String = "normal"

    fun setTitle(title: String):TestUIFragment{
        this.title = title
        return this
    }

}